package activator;

import java.util.Dictionary;
import java.util.Hashtable;

import org.osgi.framework.Constants;

public class ServicePropertiesProvider {
	private static String CATEGORY_TYPE = "fiction";

	public static Dictionary getServiceProperties() {
		Dictionary serviceProperties = new Hashtable();
		serviceProperties.put("category", CATEGORY_TYPE);

		// The service ranking is used by the Framework to determine the natural
		// order of services. The default ranking is zero (0)

		// A service with a ranking of Integer.MAX_VALUE is very likely to be
		// returned as the default service, whereas a service with a ranking of
		// Integer.MIN_VALUE is very unlikely to be returned.
		serviceProperties.put(Constants.SERVICE_RANKING, new Integer(1));

		return serviceProperties;
	}
}
